<template>
  <div>
    <div>自己的input <input
        type="text"
        :value="value"
        @input='fn'
      ></div>
    <div>自己的input2 <input
        type="text"
        v-model='value2'
      ></div>
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  props: ["value"],
  data() {
    return {};
  },
  methods: {
    fn(e) {
      // e.target.value
      this.$emit("input", e.target.value);
    },
  },
  computed: {
    value2: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
};
</script>
<style lang="less">
</style>